﻿using System;
using System.Collections.Generic;
using System.Text;
using Function;

namespace BLL
{
    public class Data_BindDateBLL
    {
        #region --绑定数据，返回object
        /// <summary>
        /// 绑定数据，返回object
        /// </summary>       
        /// <param name="Message">返回错误异常</param>
        /// <param name="tablename">表的名称</param>       
        /// <param name="strOrder">排序列名称</param>  
        /// <param name="intOrder">排序方式，1：升序（默认） 0：降序</param>       
        /// <param name="TopCount">可显示的记录数，0：无限</param>  
        /// <param name="connection">数据库链接</param>
        /// <returns>返回object</returns>		
        public static object Page_BindDate(out string Message, string tablename, string strOrder, int intOrder, int TopCount, PubConstant.DataBaseTarget target)
        {
            return DAL.Data_BindDateDAL.Page_BindDate(out Message, tablename, strOrder, intOrder, TopCount, PubConstant.GetConnectString(target));
        }
        #endregion

        #region --绑定数据，返回object
        /// <summary>
        /// 绑定数据，返回object
        /// </summary>       
        /// <param name="Message">返回错误异常</param>
        /// <param name="tablename">表的名称</param>       
        /// <param name="strOrder">排序列名称</param>  
        /// <param name="intOrder">排序方式，1：升序（默认） 0：降序</param>
        /// <param name="TopCount">可显示的记录数，0：无限</param>        
        /// <param name="strWhere">需要查询的条件,前面不加where</param>
        /// <param name="connection">数据库链接</param>
        /// <returns>返回object</returns>		
        public static object Page_BindDate(out string Message, string tablename, string strOrder, int intOrder, int TopCount, string strWhere, PubConstant.DataBaseTarget target)
        {
            return DAL.Data_BindDateDAL.Page_BindDate(out Message, tablename, strOrder, intOrder, TopCount, strWhere, PubConstant.GetConnectString(target));
        }
        #endregion
    }
}
